seq
{base}
Create a sequence
table
{base}
Obtain frequency table of a variable/cross-tabulation of two variables
class
{base}
Retrieve class of an R object
geom_bar
{GGPLOT2}
Generates a bar chart
summarise
{dplyr}
collapse the dataset to a summary statistic. Usually used with group_by()
matrix
{base}
Creates a matrix from the given set of values.
rbeta
{stats}
Beta Random Number Generating Function
View
{base}
View a data frame
ylab
{GGPLOT2}
Label the y axis (ggplot)
factor
{base}
Create a factor
head
{utils}
Show first 5 rows of a data frame
boxplot
{graphics}
Plot a simple box plot
cbind
{base}
Combine R objects by columns
freq
{questionr}
Generate frequency tables
read.spss
{foreign}
Read a .sav file (SPSS data)
order
{base}
Get indexes that will sort a vector
select
{dplyr}
Select columns from a tibble/data frame
install.packages
{base}
Install R package
attach
{base}
Attach Set of R Objects to Search Path
ungroup
{dplyr}
Resolve grouping created with “group_by”
theme_classic
{GGPLOT2}
A minimalistic theme with no gridlines
after_stat
{GGPLOT2}
Control aesthetic evaluation. On the module used for displying percent
labs
{GGPLOT2}
Customise labels in GGPLOT2
theme_bw
{GGPLOT2}
A black and white ggplot theme
sample
{base}
Takes a sample of the specified size
scale_x_continuous
{GGPLOT2}
Customise continuous x axis
recode
{dplyr}
Recode a variable
ncol
{base}
Get number of columns of a data frame
ordered
{dplyr}
Create an ordered factor
ifelse
{base}
Return a or b depending on the value of test
str
{utils}
Get the structure of an R object
xlab
{GGPLOT2}
Label the x axis (ggplot)
var
{stats}
Calculate variance
slice
{dplyr}
Subset rows using their positions
range
{base}
Return range of values
library
{base}
Load an R package
lprop
{questionr}
Display row percentages of a two-way frequency table
setwd
{base}
Set Working Directory
is.na
{base}
Check if a value is NA/elements of vector are NA
levels
{base}
Get levels of a factor
get_mode
{rstatix}
Compute the mode in a given vector.
median
{stats}
Get median of a vector
as.data.frame
{base}
Functions to check if an object is a data frame, or coerce it if possible.
rnorm
{base}
Generate random numbers from a normal distribution
geom_histogram
{GGPLOT2}
Generates a histogram
subset
{base}
Return subsets of vectors, matrices or data frames which meet conditions.
plot
{graphics}
Generic function from base R to produce a plot
c
{base}
Combine values/vectors into a vector
cut
{base}
Convert Numeric to Factor
ggtitle
{GGPLOT2}
Generates a title for a ggplot graph
geom_density
{GGPLOT2}
Generates a density plot
arrange
{dplyr}
Sort values of data frame according to a variable/combination of varaibles
nrow
{base}
Get number of rows of a data frame
desc
{dplyr}
Arrange in descending order
max
{base}
Get maximum of a vector
mutate
{dplyr}
Modify/create a column in a data frame
sum
{base}
Get sum of numeric values or a vector
unique
{base}
get unique elements
summary
{base}
Obtain summary statistics or detailed regression output
names
{base}
Retrieve names of a list/vector
which.max
{base}
return index of the largest value in a vector
read_excel
{readxl}
Read an Excel file
round
{base}
Rounds numbers
group_by
{dplyr}
Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise
filter
{dplyr}
Filter out rows of a data frame according to logical vector
pie
{graphics}
Creates a basic pie chart
mean
{base}
Get mean of a vector
hist
{graphics}
Plot a simple histogram
ls
{base}
Return a vector of character strings giving the names of the objects in the specified environment
rbind
{base}
Combine R objects by rows
sd
{stats}
Get standard deviation of a vector
tabulate
{base}
Counts the number of times each integer occurs in an integer-only vector
ls.str
{utils}
Similarly to ls, with a print() method that calls str() on each object
aes
{GGPLOT2}
Construct aesthetic mapping of a ggplot graph
grid.arrange
{gridExtra}
Places graphical objects into a rectangular grid
set.seed
{base}
Initialise a pseudorandom number generator.
min
{base}
Get minimum of a vector
dim
{base}
Get dimensions of a data frame
runif
{stats}
Draws ranndom numbers from the uniform distribution
ggplot
{GGPLOT2}
Create a ggplot graph
rm
{base}
Remove objects
The end!